//
//  SPViewController.h
//  SuperPatrner
//
//  Created by EvanZ on 15/3/28.
//  Copyright (c) 2015年 EvanZ. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MBProgressHUD.h"
#import "Define.h"

@interface SPViewController : UIViewController <MBProgressHUDDelegate>
{
    BOOL isAutoCloseProgress;
}

@property (nonatomic,strong) MBProgressHUD *progressHUD;

- (void)alertWithTitle:(NSString *)title message:(NSString *)message;

#pragma mark -
#pragma mark MBProgressHUD Methods
-(void) showProgressWithText : (NSString *) context;
-(void) showProgressWithText : (NSString *) context dimBackground : (BOOL) isBackground;

// AutoCloseInNetwork方法在网络层调用正确时，自动关闭浮层，UI层如果需要显示完成信息的话使用[showProgressWithText:context withDelayTime:sec] 方法
// 当网络访问出错时，错误浮层自动更换，UI层无需实现，如不须显示错误信息，UI层重写[showProgressWithText:context withDelayTime:sec]方法

-(void) showProgressAutoCloseInNetwork : (NSString *) context;
-(void) showProgressAutoCloseInNetwork : (NSString *) context dimBackground : (BOOL) isBackground;

-(void) closeProgress;
-(void) showProgressWithText : (NSString *) context withDelayTime : (NSUInteger) sec;
// 针对于大数据处理、视频处理、及一些及其消耗时间的本地处理等情况
-(void) showWhileExecuting : (SEL) sel withText : (NSString *) text withDetailText : (NSString *) detailText;

-(void) showProgressWithText:(NSString *)text closeAfterDelayTime: (NSUInteger) sec;
-(void) showHintProgressWithText:(NSString *)text;

-(void)AddUserInfoView;
-(void)initLeftMenuViewWithSkinStyle:(NSString *)skinStyle;
//-(void)initRightView:(NSInteger)type;
-(void)setMainTitle:(NSString *)title WithSkinStyle:(NSString *)skinStyle;
-(void)updatePersonalInfo:(NSDictionary *)info;

@end
